<div class="card receipts">
    <div
        class="px-5 pt-2 pb-2 rounded h-250px w-100 bg-primary d-flex justify-content-between align-items-start flex-wrap">
        <!--begin::Balance-->
        <div class="d-flex align-items-center align-self-center flex-wrap">
            <div class="fw-bolder fs-7 text-white">收入
                <span class="fw-boldest fs-2hx d-block mt-1">￥{{$case['receipt']}}</span></div>
        </div>
        <div class="d-flex align-items-center align-self-center flex-wrap">
            <div class="fw-bolder fs-7 text-white">支出
                <span class="fw-boldest fs-2hx d-block mt-1">￥{{$case['salesexpenses']}}</span></div>
        </div>
        <!--begin::Balance-->
    </div>
    <div class="card-body py-1">
        <div class="markdown-body editormd-html-preview">
            <div class="row">

                <div class="col-md-12 col-sm-12 col-12" style="margin:20px 0">
                    <table class="table">
                        <thead>
                            <tr class="meter_head">
                                <td>收支类型</td>
                                <td>收支日期</td>
                                <td>金额</td>
                                <td>方式</td>
                                <td>票据</td>
                                <td>备注</td>
                            </tr>
                        </thead>
                        <tbody>
                            @foreach ($receipts as $receipt)
                            <tr>
                                <td>
                                    @if ($receipt['type'] == 1)
                                    <span class="badge badge-success">收入</span>
                                    @else
                                    <span class="badge badge-warning">支出</span>
                                    @endif
                                </td>
                                <td>{{$receipt['updated_at']}}</td>
                                <td>{{$receipt['receive']}} 元</td>
                                <td>
                                    @switch($receipt['paymethod'])
                                    @case(1)
                                    银行转账
                                    @break

                                    @case(2)
                                    微信
                                    @break

                                    @case(3)
                                    支付宝
                                    @break

                                    @default
                                    现金
                                    @endswitch

                                </td>
                                <td>
                                    @switch($receipt['billtype'])
                                    @case(1)
                                    收据
                                    @break

                                    @case(2)
                                    发票
                                    @break

                                    @default
                                    其他
                                    @endswitch

                                </td>
                                <td>{{$receipt['remark']}}</td>
                            </tr>
                            @endforeach
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
